#!/usr/bin/env python
# -*- coding: utf-8 -*-

DEBUG = True
TEMPLATE_DEBUG = True

# broker for celery
BROKER_URL = 'amqp://guest:guest@localhost:5672/'

STATICFILES_DIRS = (
    ('style', 'ABS_PATH_TO_STYLE'),
    ('scripts', 'ABS_PATH_TO_SCRIPTS'),
)

# URL prefix for static files.
STATIC_URL = '/static/'

MEDIA_URL = '/site-media/'
#ADMIN_MEDIA_PREFIX = '/admin-media/'

# Folder where the Downloads are stored
DOWNLOAD_ROOT = 'ABS_PATH_TO_DOWNLOAD_ROOT'


# Email backend
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'datenbasis.db',                      # Or path to database file if using sqlite3.
    }
}

# some logging
LOGGING = {
    'version': 1,
    'disable_existing_loggers': True,
    'formatters': {
        'verbose': {
            'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
        },
        'simple': {
            'format': '%(levelname)s %(message)s'
        },
    },
    'handlers': {
        'null': {
            'level':'DEBUG',
            'class':'django.utils.log.NullHandler',
        },
        'console':{
            'level':'DEBUG',
            'class':'logging.StreamHandler',
            'formatter': 'simple'
        },
    },
    'loggers': {
        'django': {
            'handlers':['null'],
            'propagate': True,
            'level':'INFO',
        },
        'django.request': {
            'handlers': ['null'],
            'level': 'ERROR',
            'propagate': False,
        },
        'dajaxice': {
            'handlers': ['console'],
            'level': 'INFO',
            'propagate': True,
        }
    }
}

# AV active?
ANTI_VIRUS = True
# path to clamd.ctl
CLAMD_PATH = '/var/run/clamav/clamd.ctl'

# Blacklist for mimetypes in uploads
UPLOAD_BLACKLIST = ('text/x-shellscript', 'application/octet-stream', 'application/x-msdos-program')

# List of double extensions
DOUBLE_EXTENSIONS = ['tar.gz','tar.bz2']

# Maximum upload size in byte
MAX_UPLOAD_SIZE = 100971520 # ~100MB

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'g_dzrip06$2q#y1(#su3hdyxalc##uien9h_94tza2^bhki_h('

# Make localization
locale = 'de_DE.utf-8'